package com.buba.goods.service.impl;

import com.buba.goods.dao.MatterMapper;
import com.buba.goods.pojo.ItemsType;
import com.buba.goods.pojo.MatterInfo;
import com.buba.goods.pojo.MatterPrice;
import com.buba.goods.service.MatterService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
@DubboService
public class MatterServiceImpl implements MatterService {
    private MatterMapper matterMapper;
    @Override
    public Integer addMatterPrice(Map<String, Object> map) {
        return matterMapper.addMatterPrice(map);
    }

    @Override
    public Long selMatterPriceCount(Map<String, Object> map) {
        return matterMapper.selMatterPriceCount(map);
    }

    @Override
    public List<MatterPrice> selMatterPrice(Map<String, Object> map) {
        return matterMapper.selMatterPrice(map);
    }

    @Override
    public Integer delMatterPriceAll(List<String> list) {
        return matterMapper.delMatterPriceAll(list);
    }

    @Override
    public Integer addMatterInfo(Map<String, Object> map) {
        return matterMapper.addMatterInfo(map);
    }

    @Override
    public Long selMatterInfoCount(Map<String, Object> map) {
        return matterMapper.selMatterInfoCount(map);
    }

    @Override
    public List<MatterInfo> selMatterInfo(Map<String, Object> map) {

        return matterMapper.selMatterInfo(map);
    }

    @Override
    public Integer delMatterInfoAll(List<String> list) {
        return matterMapper.delMatterInfoAll(list);
    }

    @Override
    public Integer updMatterInfo(Map<String, Object> map) {
        return matterMapper.updMatterInfo(map);
    }

    @Override
    public Integer updMatterPrice(Map<String, Object> map) {
        return matterMapper.updMatterPrice(map);
    }

    @Override
    public List<MatterPrice> selMatterPriceByExcel() {
        return matterMapper.selMatterPriceByExcel();
    }

    @Override
    public List<MatterInfo> selMatterInfoItemsInfoNo() {
        return matterMapper.selMatterInfoItemsInfoNo();
    }

    @Override
    public Integer selMatterPriceByNo(Map<String, Object> map) {
        return matterMapper.selMatterPriceByNo(map);
    }

    @Override
    public void addMatterPrice2(MatterPrice matterPrice) {
        matterMapper.addMatterPrice2(matterPrice);
    }

    @Override
    public List<ItemsType> selItemsType() {
        return matterMapper.selItemsType();
    }

    @Override
    public String selItemsTypeById(String itemsTypeId) {
        return matterMapper.selItemsTypeById(itemsTypeId);
    }

    @Override
    public List<MatterInfo>  selMatterInfoItemsInfoNo1() {
        return matterMapper.selMatterInfoItemsInfoNo1();
    }

    @Override
    public Integer selMatterInfoItemsInfoNo2(String itemsTypeId) {
        return matterMapper.selMatterInfoItemsInfoNo2(itemsTypeId);
    }


    @Autowired
    public void setMatterMapper(MatterMapper matterMapper) {
        this.matterMapper = matterMapper;
    }
}
